Class IkePduImpl

All Implemented Interfaces:
IPCData, IkePdu, Pdu, Signal

public class IkePduImpl extends PduImpl implements IkePdu
  • Field Details

    • initCookie

      protected long initCookie
    • responseCookie

      protected long responseCookie
    • nextPayload

      protected Byte nextPayload
    • versionNumber

      protected Byte versionNumber
    • exchangeType

      protected Byte exchangeType
    • flag

      protected Byte flag
    • msgId

      protected int msgId
    • msgLength

      protected int msgLength
    • payloadList

      protected List<IkePayload> payloadList
    • data

      protected String data
  • Constructor Details

    • IkePduImpl

      public IkePduImpl()
  • Method Details

    • getInitCookie

      public long getInitCookie()
      Specified by:
      getInitCookie in interface IkePdu
      Returns:
      long Returns a long
    • setInitCookie

      public void setInitCookie(long initCookie)
      Specified by:
      setInitCookie in interface IkePdu
      Parameters:
      initCookie - Takes in a parameter of initCookie
    • getResponseCookie

      public long getResponseCookie()
      Specified by:
      getResponseCookie in interface IkePdu
      Returns:
      long Returns a long
    • setResponseCookie

      public void setResponseCookie(long responseCookie)
      Specified by:
      setResponseCookie in interface IkePdu
      Parameters:
      responseCookie - Takes in a parameter of responseCookie
    • getNextPayload

      public Byte getNextPayload()
      Specified by:
      getNextPayload in interface IkePdu
      Returns:
      Byte Returns a Byte
    • setNextPayload

      public void setNextPayload(Byte nextPayload)
      Specified by:
      setNextPayload in interface IkePdu
      Parameters:
      nextPayload - Takes in a parameter of nextPayload
    • getVersionNumber

      public Byte getVersionNumber()
      Specified by:
      getVersionNumber in interface IkePdu
      Returns:
      Byte Returns a Byte
    • setVersionNumber

      public void setVersionNumber(Byte versionNumber)
      Specified by:
      setVersionNumber in interface IkePdu
      Parameters:
      versionNumber - Takes in a parameter of versionNumber
    • getExchangeType

      public Byte getExchangeType()
      Specified by:
      getExchangeType in interface IkePdu
      Returns:
      Byte Returns a Byte
    • setExchangeType

      public void setExchangeType(Byte exchangeType)
      Specified by:
      setExchangeType in interface IkePdu
      Parameters:
      exchangeType - Takes in a parameter of exchangeType
    • getFlag

      public Byte getFlag()
      Specified by:
      getFlag in interface IkePdu
      Returns:
      Byte Returns a Byte
    • setFlag

      public void setFlag(Byte flag)
      Specified by:
      setFlag in interface IkePdu
      Parameters:
      flag - Takes in a parameter of flag
    • getMsgId

      public int getMsgId()
      Specified by:
      getMsgId in interface IkePdu
      Returns:
      int Returns a int
    • setMsgId

      public void setMsgId(int msgId)
      Specified by:
      setMsgId in interface IkePdu
      Parameters:
      msgId - Takes in a parameter of msgId
    • getMsgLength

      public int getMsgLength()
      Specified by:
      getMsgLength in interface IkePdu
      Returns:
      int Returns a int
    • setMsgLength

      public void setMsgLength(int msgLength)
      Specified by:
      setMsgLength in interface IkePdu
      Parameters:
      msgLength - Takes in a parameter of msgLength
    • getPayloadList

      public List<IkePayload> getPayloadList()
      Specified by:
      getPayloadList in interface IkePdu
      Returns:
      List<IkePayload> Returns a List<IkePayload>
    • setPayloadList

      public void setPayloadList(List<IkePayload> payloadList)
      Specified by:
      setPayloadList in interface IkePdu
      Parameters:
      payloadList - Takes in a parameter of payloadList
    • getData

      public String getData()
      Specified by:
      getData in interface IkePdu
      Returns:
      String Returns a String
    • setData

      public void setData(String data)
      Specified by:
      setData in interface IkePdu
      Parameters:
      data - Takes in a parameter of data
    • getFieldType

      public PtmpTypeValue getFieldType(String fieldName)
      Overrides:
      getFieldType in class PduImpl
    • read

      public void read(EncodedBuffer buffer)
      Reads this object from an EncodedBuffer of raw data
      Specified by:
      read in interface IPCData
      Overrides:
      read in class PduImpl
      Parameters:
      buffer - The EncodedBuffer that contains the raw data from which to construct this object
    • pduRead

      public void pduRead(EncodedBuffer buffer)
      Specified by:
      pduRead in interface Signal
      Overrides:
      pduRead in class PduImpl
    • getOrderedFieldNames

      public List<String> getOrderedFieldNames()
      Specified by:
      getOrderedFieldNames in interface Signal
      Overrides:
      getOrderedFieldNames in class PduImpl
    • encodeTypeAndPayload

      public void encodeTypeAndPayload(EncodedBuffer buffer)
      Specified by:
      encodeTypeAndPayload in interface Signal
      Overrides:
      encodeTypeAndPayload in class PduImpl